package com.yc2.config;


import org.springframework.context.annotation.*;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

/**
 * @ClassName configuration
 * @since: 2023/7/25 16:28
 * @auth: kirito
 * @description:
 **/
@Configuration
@ComponentScan("com.yc2")
public class configuration {
    @Bean
    public ExecutorService threadPool() {
        return Executors.newFixedThreadPool(5);
    }
}
